package cn.net.cfss.fgbp.spi.manage.inte;

import cn.net.cfss.fgbp.base.page.PageData;
import cn.net.cfss.fgbp.spi.manage.constant.Constants;
import cn.net.cfss.fgbp.spi.manage.dto.FscTenantDto;
import cn.net.cfss.fgbp.spi.manage.vo.FscTenantVo;
import cn.net.cfss.fgbp.spi.manage.vo.ResultDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @author wutao
 * @version 1.0
 * @date 2020/9/4 11:35
 */
@FeignClient(name = Constants.SPI_SERVER_NAME)
@RequestMapping("IFscTenantService")
public interface IFscTenantService {

    /**
     * 基础分页接口
     * @param pageData
     */
    @RequestMapping(value = "/page",method = RequestMethod.POST,produces = "application/json;charset=UTF-8")
    public PageData<FscTenantVo> page(@RequestBody PageData<FscTenantVo> pageData);

    /**
     * 新增
     * @param fscTenantVo
     * @return
     */
    @RequestMapping(value = "/add",method = RequestMethod.POST,produces = "application/json;charset=UTF-8")
    public ResultDto<FscTenantVo> add(@RequestBody FscTenantVo fscTenantVo);

    /**
     * 修改
     * @param fscTenantVo
     * @return
     */
    @RequestMapping(value = "/update",method = RequestMethod.POST,produces = "application/json;charset=UTF-8")
    public ResultDto<FscTenantVo> update(@RequestBody FscTenantVo fscTenantVo);


    /**
     * list
     * @param fscTenantVo
     * @return
     */
    @RequestMapping(value = "/list",method = RequestMethod.POST,produces = "application/json;charset=UTF-8")
    public List<FscTenantVo> list(@RequestBody FscTenantVo fscTenantVo);

    /**
     *
     * @param fscTenantDto
     * @return
     */
    @RequestMapping(value = "/selectOne",method = RequestMethod.POST,produces = "application/json;charset=UTF-8")
    public FscTenantDto selectOne(@RequestBody FscTenantDto fscTenantDto);
}
